<template>
    <keep-alive v-if="$route.meta.keepAlive">
      <router-view :key="key"></router-view>
    </keep-alive>
    <router-view v-else
                 :key="key">
    </router-view>
</template>

<script>
export default {
  mounted () {
    console.log('page')
  },
  computed: {
    key () {
      return this.$route.fullPath
    }
  }
}
</script>

<style>
</style>
